/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.guobo.entity;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 位置Entity
 * @author wudavid
 * @version 2017-03-09
 */
public class Location extends DataEntity<Location> {
	
	private static final long serialVersionUID = 1L;
	private String name;		// 名称
	private String address;		// 详细地址
	private ExhHall exhHall;	
	
	public ExhHall getExhHall() {
		return exhHall;
	}

	public void setExhHall(ExhHall exhHall) {
		this.exhHall = exhHall;
	}

	public Location() {
		super();
	}

	public Location(String id){
		super(id);
	}

	@Length(min=0, max=64, message="名称长度必须介于 0 和 64 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
		
	@Length(min=0, max=64, message="详细地址长度必须介于 0 和 64 之间")
	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}
	
}